package com.lianxueda.drawing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lianxueda.drawing.domain.pojo.WxLeave;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface WxLeaveMapper extends BaseMapper<WxLeave> {


    @Select("select count(*) from `leave`")
    Long selectLeaveCount();
    @Select("select * from `leave` limit #{startIndex},#{pageSize}")
    List<WxLeave> selectLeavePage(@Param("startIndex") Integer startIndex, @Param("pageSize")Integer pageSize);

}
